// 巴士类
public class Bus extends Automobile {
    private int seatCount;  // 座位数

    // 构造方法
    public Bus(String brand, String plateNumber, int seatCount) {
        super(brand, plateNumber);
        this.seatCount = seatCount;
    }

    // 计算租金：根据座位数获取日租金，再乘以天数
    @Override
    public int getRent(int days) {
        int dailyRent = (seatCount <= 16) ? 400 : 600;
        return dailyRent * days;
    }
}
    